﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Edit.Master" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="FirstProjDocReceive.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Audit.FirstProjDocReceive" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Styles/easyui.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery.easyui.min.js" language="javascript" type="text/javascript"></script>
 <script language="javascript" type="text/javascript">
            function setValue() {
                document.getElementById("<%=hidOwnerID.ClientID %>").value = $('#<%=ddlOwner.ClientID %>').combobox('getValue');
                document.getElementById("<%=hidOwnerName.ClientID %>").value = $('#<%=ddlOwner.ClientID %>').combobox('getText');
                document.getElementById("<%=hidOwner971ID.ClientID %>").value = $('#<%=ddlOwner971.ClientID %>').combobox('getValue');
                document.getElementById("<%=hidOwner971Name.ClientID %>").value = $('#<%=ddlOwner971.ClientID %>').combobox('getText');
                document.getElementById("<%=hidContractorID.ClientID %>").value = $('#<%=ddlContractor.ClientID %>').combobox('getValue');
                document.getElementById("<%=hidContractorName.ClientID %>").value = $('#<%=ddlContractor.ClientID %>').combobox('getText');
                document.getElementById("<%=hidFromCompanyID.ClientID %>").value = $('#<%=ddlFromCompany.ClientID %>').combobox('getValue');
                document.getElementById("<%=hidFromCompanyName.ClientID %>").value = $('#<%=ddlFromCompany.ClientID %>').combobox('getText');
                return checkInputText();
            }
            function checkInputText() {
                var projectCode = document.getElementById("<%=txtProjectCode.ClientID %>").value;
                var projectName = document.getElementById("<%=txtProjectName.ClientID %>").value;
                var contractName = document.getElementById("<%=txtContractName.ClientID %>").value;
                if (projectCode != "" && projectName != "" && contractName != "") {
                    $.ajax({
                        type: "POST",
                        url: 'checkNewPDCD.ashx?ProjectCode=' + escape(projectCode) + '&ProjectName=' + escape(projectName) + '&ContractName=' + escape(contractName) + '&randID=' + escape(new Date()),
                        success: function (msg) {
                            if (unescape(msg) != "") {
                                alert(unescape(msg));
                                return false;
                            }
                        },
                        error: function () { alert('服务器出错,无法检测合同数据！请稍后重试！'); return false; }
                    });
                }
                return true;
            }
            $('#<%=ddlOwner.ClientID %>').bind('onChange', function (n, o) {
                $('#<%=ddlFromCompany.ClientID %>').combobox('setValue', n);
            });  
        </script>
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtCode.UniqueID%>:{required: true,maxlength: 200},
					<%= numAmount.UniqueID%>:{required: true,number: true},
                    <%= txtProjectCode.UniqueID %>:{required: true,maxlength: 200},
                    <%= txtProjectName.UniqueID %>:{required: true,maxlength: 200},
                    <%= txtContractName.UniqueID%>:{required: true,maxlength: 200},
					<%= txtFromEmployee.UniqueID%>:{required: true,maxlength: 200},
					<%= txtToEmployeeName.UniqueID%>:{required: true,maxlength: 200},
					<%= dtpReceiveDate.UniqueID%>:{required: true,dateISO: true}
                 },
                 messages:
                 {
					<%= txtCode.UniqueID%>:{required: "编号 请输入合适的值",maxlength: "编号 最多只能输入200个字符"},
					<%= numAmount.UniqueID%>:{required: "本笔申请金额 请输入合适的值",number: "本笔申请金额 请输入有效的数字"},
					<%= txtProjectCode.UniqueID%>:{required:  "项目代码 请输入合适的值",maxlength: "项目代码 最多只能输入200个字符"},
                    <%= txtProjectName.UniqueID %>:{required: "项目名称 请输入合适的值",maxlength: "项目名称 最多只能输入200个字符"},
                    <%= txtContractName.UniqueID%>:{required:  "合同名称 请输入合适的值",maxlength: "合同名称 最多只能输入200个字符"},
                   <%= txtFromEmployee.UniqueID%>:{required: "报送人 请输入合适的值",maxlength: "报送人 最多只能输入200个字符"},
					<%= txtToEmployeeName.UniqueID%>:{required: "接收人 请输入合适的值",maxlength: "接收人 最多只能输入200个字符"},
					<%= dtpReceiveDate.UniqueID%>:{required: "接收时间 请选择合适的值",dateISO: "接收时间 请选择有效的日期"}
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">市政府融资项目资料接收表(回执)<span style="color:Red;font-weight:700">【首次申请】</span></th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
        <tr style="display:none">
            <td width="100px"></td><td></td><td width="100px"></td><td></td>
        </tr>
		<tr>
			<td class="title1">编号</td>
			<td><asp:TextBox ID="txtCode"  runat="server" Enabled="false"  cssClass="input2" MaxLength="200" Width="98%"></asp:TextBox></td>
            <td class="title1">本笔申请金额</td>
			<td><asp:TextBox ID="numAmount" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isDecimal();" Width="96%"></asp:TextBox></td>
		</tr>
        <tr>
            <td class="title1">项目信息</td><td colspan="3">
                <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
                    
                    <tr>
                        <td class="title1" width="100px">项目代码</td>
                        <td>
                            <asp:TextBox runat="server" ID="txtProjectCode" onchange="alert(this.value);" Width="96%" CssClass="input2"></asp:TextBox>
                        </td>   
                        
                        <td class="title1" width="100px">项目名称</td>
                        <td><asp:TextBox runat="server" ID="txtProjectName" Width="96%" CssClass="input2"></asp:TextBox></td>
                    </tr>
                    <tr>                     
                        <td class="title1" width="100px">项目单位</td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlOwner971" required="true" class="easyui-combobox" panelHeight="150" Width="264px"></asp:DropDownList>
                        </td>                     
                        <td class="title1" width="100px">建设单位</td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlOwner" required="true" class="easyui-combobox" panelHeight="150" Width="264px"></asp:DropDownList>
                        </td>
                    </tr>
                </table>
            
            </td>
        </tr>
		<tr>
			<td class="title1">合同信息</td>
			<td colspan="3">
                <asp:HiddenField runat="server" ID="hidContractID" />
               <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
                    <tr>
                        <td class="title1"  width="100px">合同名称</td>
                        <td><asp:TextBox runat="server" ID="txtContractName" Width="98%" CssClass="input2"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="title1"  width="100px">施工单位</td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlContractor" required="true" class="easyui-combobox"  panelHeight="150" Width="640px"></asp:DropDownList>
                        </td>
                    </tr>
               </table>
            </td>			
		</tr>
        <tr>
			<td class="title1" width="100px">报送单位</td>
			<td>
                <asp:DropDownList runat="server" required="true" ID="ddlFromCompany" class="easyui-combobox" panelHeight="150" Width="320px"></asp:DropDownList>
            </td>
            <td class="title1">接收单位</td>
			<td>
                <asp:TextBox runat="server" ID="txtToCompany" cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox>
            </td>
        </tr>
		<tr>
			
            <td class="title1">报送人</td>
			<td><asp:TextBox ID="txtFromEmployee" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
            <td class="title1">接收人</td>
			<td><asp:TextBox ID="txtToEmployeeName"  Enabled="false" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox>
            <asp:HiddenField runat="server" ID="hidToEmployee" />
            </td>
         </tr>
		<tr>
            <td class="title1">报送人电话</td>
            <td>
                <asp:TextBox runat="server" ID="txtFromEmployeePhone" cssClass="input2" Width="96%" MaxLength="30"></asp:TextBox>
            </td>
			<td class="title1">接收时间</td>
			<td><asp:TextBox ID="dtpReceiveDate" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>			
            
		</tr>
    </table>
       <span style="font-size:12px;color:Blue"> 本资料接收表（回执）一式两份，报送单位和接收单位各持一份。</span>
    <br />
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
        <thead>  
            <th>资料名称</th> <th width="100px">有无收文</th> <th  width="278px">备注</th>
        </thead>
        <tr>
            <td colspan="3" style="font-weight:700">项目基本情况审批资料</td>
        </tr>
        <tr>
            <td>一、项目审核情况汇总表（附件2）</td><td align="center"><asp:RadioButtonList runat="server" 
                ID="rblPD_One" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td>
                <asp:TextBox runat="server" ID="txtPD_One" Width="98%" cssClass="input2"  
                    TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、可行性研究报告批复</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc1" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc1" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、概算批复</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc2" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc2" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、环境影响审查批复</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc3" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc3" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4、项目选址意见书</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc4" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc4" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5、用地审查意见</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc5" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc5" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6、土地证</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc6" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc6" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7、土地出让合同</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc7" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc7" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8、建设用地规划许可证</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc8" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc8" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9、建设工程规划许可证</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc9" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc9" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10、建筑工程施工许可证</td><td align="center"><asp:RadioButtonList runat="server" ID="rblProjDoc10" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtProjDoc10" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>二、资本金到位情况汇总表（附件3）</td><td align="center"><asp:RadioButtonList runat="server" ID="rblZD_One" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtZD_One" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、发票/收据</td><td align="center"><asp:RadioButtonList runat="server" ID="rblZJDWDoc1" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtZJDWDoc1" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、预算拨款凭证/银行进账单</td><td align="center"><asp:RadioButtonList runat="server" ID="rblZJDWDoc2" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtZJDWDoc2" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、财政资金拨款申请书/建设单位内部支付审批表</td><td align="center"><asp:RadioButtonList runat="server" ID="rblZJDWDoc3" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtZJDWDoc3" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4、其他资金到位材料证明</td><td align="center"><asp:RadioButtonList runat="server" ID="rblZJDWDoc4" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtZJDWDoc4" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="3" style="font-weight:700">合同情况审核资料：</td>
        </tr>
        <tr>
            <td>三、深圳市政府融资项目资金支付申请表</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc1" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc1" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >四、工程款支付汇总表（附件5）</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc2" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc2" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>五、资金支付材料明细表（附件6）</td><td align="center"><asp:RadioButtonList runat="server" ID="rblCD_One" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtCD_One" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、监理合同</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc3" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc3" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、票据（发票/收据）</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc4" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc4" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、工程款支付内部审核表</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc5" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc5" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4、施工单位或其他相关单位工程款支付申请书</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc6" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc6" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >六、项目用款计划表（附件7）</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc7" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc7" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >七、单项工程施工合同或工程设计、咨询合同等</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc8" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc8" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td >八、中标通知书</td><td align="center"><asp:RadioButtonList runat="server" ID="rblContDoc9" RepeatColumns="2" RepeatLayout="Flow"></asp:RadioButtonList></td><td><asp:TextBox runat="server" ID="txtContDoc9" Width="98%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
        <tr>
            <td>其他</td><td></td><td><asp:TextBox ID="txtOther" runat="server"  MaxLength="500" Width="96%" cssClass="input2"  TextMode="MultiLine" Rows="2"></asp:TextBox></td>
        </tr>
    </table>
    <span style="font-size:12px;color:Blue">
    备注：若无监理合同及其意见，建设单位需在《深圳市政府融资项目资金支付申请表》中盖章处写明。</span>
    
    <asp:HiddenField runat="server" ID="hidOwnerID" />
    <asp:HiddenField runat="server" ID="hidOwnerName" />
    <asp:HiddenField runat="server" ID="hidOwner971ID" />
    <asp:HiddenField runat="server" ID="hidOwner971Name" />
    <asp:HiddenField runat="server" ID="hidContractorID" />
    <asp:HiddenField runat="server" ID="hidContractorName" />
    <asp:HiddenField runat="server" ID="hidFromCompanyID" />
    <asp:HiddenField runat="server" ID="hidFromCompanyName" />

        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" OnClientClick="return setValue();"
                onclick="btnOK_Click" />
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>